const path = require("path")
function resolve(dir){
  return path.join(__dirname,dir)
}

module.exports={
  lintOnSave:false,
  configureWebpack:{
    resolve:{
      alias:{
        components: resolve("src/components"),
        api: resolve("src/api"),
        pages: resolve("src/pages"),
        mock: resolve("src/mock"),
        routes: resolve("src/routes"),
        router: resolve("src/router"),
        store: resolve("src/store"),
        util:resolve("src/util"),
        common:resolve("src/common")
      }
    }
  },
  devServer:{
    proxy:{
      "/sph":{
        target:"http://39.98.123.211",
        pathRewrite:{
          "^/sph":''
        }
      }
    }
  }
}